package com.heima.test.common;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class CommomApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(CommomApplication.class, args);
        String[] names = run.getBeanDefinitionNames();
        for (int i = 0; i < names.length; i++) {
            System.out.println(names[i]);
        }
    }
}
